package mdv.exp.items.chooser;

import com.example.expenses.R;
import com.example.expenses.R.id;
import com.example.expenses.R.layout;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;

public class ItemsChooserRowView extends LinearLayout {

	private TextView name;
	private CheckBox check;

	public ItemsChooserRowView(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	}
	
	public ItemsChooserRowView(Context context) {
		super(context);
		LayoutInflater inflater = (LayoutInflater)context.getSystemService
                (Context.LAYOUT_INFLATER_SERVICE);

		inflater.inflate(R.layout.multi_choice_item_layout, this, true);
		this.name = (TextView)findViewById(R.id.multichoice_item_name);
		this.check = (CheckBox)findViewById(R.id.multichoice_item_check);
	}
	
	public void setName(String name){
		this.name.setText(name);
	}

}
